﻿using Guoc.BigMall.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Guoc.BigMall.Application.ViewObject
{
    public class ProductDto
    {
        public ProductDto() {
           
        }

        public int Id { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
        public string ShowName { get; set; }
        public string Specification { get; set; }
        public string Unit { get; set; }
        public int CategoryId { get; set; }
        public int BrandId { get; set; }
        public string CategoryCode { get; set; }
        public string BrandCode { get; set; }
        public string CategoryName { get; set; }
        public string CategoryNameAndCode { get { return string.Format("[{0}]{1}", CategoryCode, CategoryName); } }
        public string BrandName { get; set; }

        public string BrandNameAndCode { get { return string.Format("[{0}]{1}", BrandCode, BrandName); } }
        public string StoreName { get; set; }
        public string SupplierName { get; set; }
        public string StoreCode { get; set; }
        public string SupplierCode { get; set; }
        public decimal CostPrice { get; set; }
        public int InventoryQuantity { get; set; }
        public string SNCode { get; set; }

        public decimal OldPrice { get; set; }
        public decimal SalePrice { get; set; }

        /// <summary>
        /// 批次成本价
        /// </summary>
        public decimal BatchCostPrice { get; set; }
        public bool HasSNCode { get; set; }
        public string IsSNCode 
        {
            get
            {
                return HasSNCode == true ? "是" : "否";
            } 
        }

        public int Quantity { get; set; }

        public string SellingPoint { get; set; }

        /// <summary>
        /// 产地
        /// </summary>
        public string MadeIn { get; set; }
        /// <summary>
        /// 等级
        /// </summary>
        public string Grade { get; set; }

        /// <summary>
        /// 货号
        /// </summary>
        public string GoodsNo { get; set; }

        public int Status { get; set; }

        public string ImageUrl { get; set; }

    }
}
